package com.niuwa.p2p.dao.common;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.customer.Attachment;
import com.niuwa.p2p.vo.customer.AttachmentVo;


/**
 * 
 * @ClassName: AttachmentDao
 * @Descriptio 附件DAO接口     
 * @author:    jishengjun
 */
@MyBatisDao
public interface AttachmentDao {
	
	/**
	 * 添加附件
	 * 
	 * @param attachment 添加的附件对象
	 * @throws Exception
	 */
	public int inserAttachment(Attachment attachment) throws Exception;
	
	/**
	 * 根据审核ID获取附件及用户相关信息
	 * @param custId
	 * @return
	 * @throws Exception
	 */
	public AttachmentVo selectAttachmentByFildId(long auditId) throws Exception;
}